package com.lzctzk.serviceaddress.exception;


import com.lzctzk.serviceaddress.enums.ResultEnum;

/**
 * Title:
 * Description:
 * Company:
 *
 * @user GuiYue
 * @time 16:22
 * @project_name smartcommunity
 * @package_name com.ctzk.smartcommunity
 **/

//自定义的Exception  用于完成统一信息回复以及异常处理
public class MyException extends RuntimeException
{
    private Integer status;

    public MyException(ResultEnum resultEnum)
    {
        super(resultEnum.getMsg());
        this.status = resultEnum.getStatus();
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }
}
